package com.cs.observer;
/**
 * @author Sam.Lee E-mail:lishanman2007@163.com
 * @version Created：Aug 25, 2011 9:27:49 AM
 */
public class Main {
	public static void main(String[] args) {
		NewsPaper newsPaper = new NewsPaper();
		
		Reader reader1 = new Reader("Reader1");
		Reader reader2 = new Reader("Reader2");
		Reader reader3 = new Reader("Reader3");
		
		newsPaper.attachReader(reader1);
		newsPaper.attachReader(reader2);
		newsPaper.attachReader(reader3);
		
		newsPaper.setContent("这是今天的报纸内容...");
	}
}
